package cn.kgc.springcloud.controller;

import cn.kgc.springcloud.service.AccountService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author 课工场
 * @date 2025/1/16
 * @description
 */
@RestController
@RequestMapping("account")
public class AccountController {

    @Resource
    private AccountService accountService;

    @GetMapping("debit")
    public void debit(String userId,Integer money){

        accountService.debit(userId,money);
    }
}
